{
	"version": 2,
	"magic": "cantk",
	"meta": {
		"general": {
			"appid": "com.tangide.demo",
			"appversion": "1.0.0",
			"appname": "Demo",
			"appdesc": "Demo",
			"gapversion": "1.0",
			"screenscale": "fix-width",
			"orientation": "portrait",
			"developer": "Unkown <unkown@tangide.com>",
			"appIcon": "/drawapp8/images/appicons/96.png",
			"screenShot1": "",
			"screenShot2": "",
			"screenShot3": ""
		},
		"extlibs": []
	},
	"wm": {
		"type": "ui-window-manager",
		"name": "window-manager",
		"uid": 16616,
		"z": 0,
		"w": 480,
		"h": 720,
		"pivotX": 0.5,
		"pivotY": 0.5,
		"rotation": 0,
		"opacity": 1,
		"hMargin": 0,
		"vMargin": 0,
		"scaleX": 1,
		"scaleY": 1,
		"runtimeVisible": true,
		"enable": true,
		"visible": true,
		"text": "",
		"x": 0,
		"y": 0,
		"style": {
			"lineWidth": 2,
			"lineColor": "Green",
			"fillColor": "#2F3234",
			"textColor": "Black",
			"fontSize": 24,
			"fontFamily": "serif"
		},
		"xAttr": 0,
		"yAttr": 0,
		"widthAttr": 2,
		"heightAttr": 0,
		"xParam": 1,
		"yParam": 1,
		"widthParam": 1,
		"heightParam": 1,
		"soundEffectsEnalbe": true,
		"soundMusicAutoPlay": true,
		"current": 1,
		"images": {
			"display": 2,
			"force-landscape-tips": "cantk-game/assets/images/force_landscape.png",
			"force-portrait-tips": "cantk-game/assets/images/force_portrait.png"
		},
		"events": {
			"onClick": null,
			"onChanged": null
		},
		"settings": {},
		"children": [
			{
				"type": "ui-window",
				"name": "win-loading",
				"uid": 10819,
				"z": 0,
				"w": 480,
				"h": 720,
				"pivotX": 0.5,
				"pivotY": 0.5,
				"rotation": 0,
				"opacity": 1,
				"hMargin": 0,
				"vMargin": 0,
				"scaleX": 1,
				"scaleY": 1,
				"runtimeVisible": true,
				"enable": false,
				"visible": true,
				"text": "",
				"x": 0,
				"y": 0,
				"style": {
					"lineWidth": 2,
					"lineColor": "Green",
					"fillColor": "#2F3234",
					"textColor": "Black",
					"fontSize": 15,
					"fontFamily": "serif"
				},
				"isUILoadingWindow": true,
				"xAttr": 0,
				"yAttr": 0,
				"widthAttr": 2,
				"heightAttr": 2,
				"xParam": 1,
				"yParam": 1,
				"widthParam": 1,
				"heightParam": 1,
				"animHint": "none",
				"windowType": "main",
				"isUILoadingWindowV2": true,
				"images": {
					"display": 2
				},
				"events": {
					"onClick": null,
					"onSystemInit": null,
					"onLoad": null,
					"onOpen": null,
					"onBeforeOpen": "var win = this;\nvar wm = this.getParent();\nvar bar = win.findChildByType(\"ui-progressbar\");\n\nfunction showInitWindow() {\n    var windowNameToBeOpen = win.windowNameToBeOpen; \n    if(windowNameToBeOpen) {\n        win.openWindow(windowNameToBeOpen, null, true);\n        console.log(\"Assets Loaded: open: windowNameToBeOpen=\" + windowNameToBeOpen);\n    }\n    else {\n        wm.showInitWindow();        \n        console.log(\"Assets Loaded: showInitWindow.\");\n    }\n}\n\nfunction onResLoadProgress(percent, loadedNr, TotalNr) {\n    if(bar) {\n        bar.setPercent(percent);\n    }\n    \n    if(percent > 99) {\n        showInitWindow();\n        ResLoader.setOnChangedListener(null);\n    }\n    win.postRedraw();\n    console.log(\"Resloading:\" + percent + \"%(\" + loadedNr + \"/\" + TotalNr + \")\");    \n}\n\nvar preloadWindows = this.preloadWindows;\nvar winNamesArr = preloadWindows ? preloadWindows.split(\",\") : null;\n\nwm.loadAssets(winNamesArr);\nconsole.log(\"Start To Load Assets Of Scenes:\" + (preloadWindows ? preloadWindows : \"all scenes\"));\n\nif(ResLoader.getPercent() < 100) {\n    ResLoader.setOnChangedListener(onResLoadProgress);\n}\nelse {\n    showInitWindow();\n}\n\n",
					"onClose": null,
					"onSwitchToBack": null,
					"onSwitchToFront": null,
					"onGesture": null,
					"onKeyDown": null,
					"onKeyUp": null,
					"onSwipeLeft": null,
					"onSwipeRight": null,
					"onSwipeUp": null,
					"onSwipeDown": null
				},
				"settings": {},
				"children": [
					{
						"type": "ui-progressbar",
						"name": "progressbar",
						"uid": 13660,
						"z": 1,
						"w": 105,
						"h": 24,
						"pivotX": 0.5,
						"pivotY": 0.5,
						"rotation": 0,
						"opacity": 1,
						"hMargin": 0,
						"vMargin": 0,
						"scaleX": 1,
						"scaleY": 1,
						"roundRadius": 5,
						"runtimeVisible": true,
						"enable": true,
						"visible": true,
						"text": "",
						"x": 187,
						"y": 348,
						"style": {
							"lineWidth": 2,
							"lineColor": "#f4c900",
							"fillColor": "white",
							"textColor": "rgba(0,0,0,0)",
							"fontSize": 16,
							"fontFamily": "serif"
						},
						"value": 0.1,
						"xAttr": 3,
						"yAttr": 3,
						"widthAttr": 1,
						"heightAttr": 0,
						"xParam": 1,
						"yParam": 1,
						"widthParam": 0.21875,
						"heightParam": 1,
						"images": {
							"display": 4
						},
						"events": {
							"onClick": null,
							"onChanged": "console.log(\"onChanged was triggered\")",
							"onChanging": null
						},
						"children": []
					},
					{
						"type": "ui-image",
						"name": "资源加载LOGO",
						"uid": 13751,
						"z": 2,
						"w": 128,
						"h": 128,
						"pivotX": 0.5,
						"pivotY": 0.5,
						"rotation": 12.566370614359172,
						"opacity": 1,
						"hMargin": 0,
						"vMargin": 0,
						"scaleX": 1,
						"scaleY": 1,
						"runtimeVisible": true,
						"enable": true,
						"visible": true,
						"text": "",
						"x": 176,
						"y": 202,
						"style": {
							"lineWidth": 2,
							"lineColor": "Red",
							"fillColor": "White",
							"textColor": "Black",
							"fontSize": 16,
							"fontFamily": "serif"
						},
						"xAttr": 3,
						"yAttr": 2,
						"widthAttr": 0,
						"heightAttr": 0,
						"xParam": 1,
						"yParam": 0.28055555555555556,
						"widthParam": 1,
						"heightParam": 1,
						"defaultAnimationName": "action_one",
						"images": {
							"display": 0,
							"default_bg": ""
						},
						"events": {
							"onClick": null,
							"onDoubleClick": null,
							"onUpdateTransform": null,
							"onAnimateDone": null
						},
						"animations": {
							"action_one": {
								"opacityStart": 0,
								"opacityEnd": 0,
								"rotationStart": null,
								"rotationEnd": null,
								"scaleXStart": 1,
								"scaleXEnd": 1.3,
								"scaleYStart": 1,
								"scaleYEnd": 1.3,
								"xStart": "",
								"xEnd": "",
								"yStart": "",
								"yEnd": "",
								"name": "action_one",
								"delay": 0,
								"duration": 400,
								"next": "action_two",
								"interpolator": "linear"
							},
							"action_two": {
								"opacityStart": 0,
								"opacityEnd": 0,
								"rotationStart": null,
								"rotationEnd": null,
								"scaleXStart": 1.3,
								"scaleXEnd": 0.7,
								"scaleYStart": 1.3,
								"scaleYEnd": 0.7,
								"xStart": "",
								"xEnd": "",
								"yStart": "",
								"yEnd": "",
								"name": "action_two",
								"delay": 0,
								"duration": 100,
								"next": "action_three",
								"interpolator": "linear"
							},
							"action_three": {
								"opacityStart": 0,
								"opacityEnd": 0,
								"rotationStart": 0,
								"rotationEnd": 6.283185307179586,
								"scaleXStart": null,
								"scaleXEnd": null,
								"scaleYStart": null,
								"scaleYEnd": null,
								"xStart": "",
								"xEnd": "",
								"yStart": "",
								"yEnd": "",
								"name": "action_three",
								"delay": 0,
								"duration": 1500,
								"next": "action_four",
								"interpolator": "bounce"
							},
							"action_four": {
								"opacityStart": 0,
								"opacityEnd": 0,
								"rotationStart": 0,
								"rotationEnd": 0,
								"scaleXStart": null,
								"scaleXEnd": null,
								"scaleYStart": null,
								"scaleYEnd": null,
								"xStart": "",
								"xEnd": "",
								"yStart": "",
								"yEnd": "",
								"name": "action_four",
								"delay": 0,
								"duration": 200,
								"next": "action_three",
								"interpolator": "bounce"
							}
						},
						"children": []
					}
				]
			},
			{
				"type": "ui-scene",
				"name": "win-main",
				"uid": 16617,
				"z": 1,
				"w": 480,
				"h": 720,
				"pivotX": 0.5,
				"pivotY": 0.5,
				"rotation": 0,
				"opacity": 1,
				"hMargin": 0,
				"vMargin": 0,
				"scaleX": 1,
				"scaleY": 1,
				"runtimeVisible": true,
				"enable": true,
				"visible": true,
				"text": "",
				"x": 0,
				"y": 0,
				"style": {
					"lineWidth": 2,
					"lineColor": "#C8C8C8",
					"fillColor": "#2F3234",
					"textColor": "Blue",
					"fontSize": 15,
					"fontFamily": "sans"
				},
				"xAttr": 0,
				"yAttr": 0,
				"widthAttr": 2,
				"heightAttr": 2,
				"xParam": 1,
				"yParam": 1,
				"widthParam": 1,
				"heightParam": 1,
				"enablePhysics": true,
				"gravityY": 10,
				"pixelsPerMeter": 100,
				"virtualWidth": 0,
				"virtualHeight": 0,
				"xOffset": 0,
				"yOffset": 0,
				"animHint": "none",
				"images": {
					"display": 3
				},
				"events": {
					"onClick": null,
					"onSystemInit": null,
					"onLoad": null,
					"onOpen": null,
					"onBeforeOpen": null,
					"onClose": null,
					"onSwitchToBack": null,
					"onSwitchToFront": null,
					"onGesture": null,
					"onKeyDown": null,
					"onKeyUp": null,
					"onPointerDown": null,
					"onPointerMove": null,
					"onPointerUp": null,
					"onDoubleClick": null,
					"onSwipeLeft": null,
					"onSwipeRight": null,
					"onSwipeUp": null,
					"onSwipeDown": null,
					"onUnload": null
				},
				"settings": {},
				"children": [
					{
						"type": "ui-label",
						"name": "ui-label-general",
						"uid": 18607,
						"z": 0,
						"w": 480,
						"h": 46,
						"pivotX": 0.5,
						"pivotY": 0.5,
						"rotation": 0,
						"opacity": 1,
						"hMargin": 5,
						"vMargin": 5,
						"scaleX": 1,
						"scaleY": 1,
						"runtimeVisible": true,
						"enable": true,
						"visible": true,
						"text": "Label",
						"x": 0,
						"y": 0,
						"style": {
							"lineWidth": 2,
							"lineColor": "Red",
							"fillColor": "rgba(0,0,0,0)",
							"textColor": "#ffffff",
							"fontSize": 15,
							"fontFamily": "serif"
						},
						"xAttr": 2,
						"yAttr": 4,
						"widthAttr": 2,
						"heightAttr": 0,
						"xParam": 0,
						"yParam": 1,
						"widthParam": 1,
						"heightParam": 1,
						"hTextAlign": "center",
						"vTextAlign": "middle",
						"images": {
							"display": 2
						},
						"events": {
							"onClick": null,
							"onChanged": null,
							"onUpdateTransform": null
						},
						"children": []
					},
					{
						"type": "ui-progressbar",
						"name": "ui-progressbar-general",
						"uid": 13320,
						"z": 1,
						"w": 480,
						"h": 38,
						"pivotX": 0.5,
						"pivotY": 0.5,
						"rotation": 0,
						"opacity": 1,
						"hMargin": 0,
						"vMargin": 0,
						"scaleX": 1,
						"scaleY": 1,
						"roundRadius": 5,
						"runtimeVisible": true,
						"enable": true,
						"visible": true,
						"text": "",
						"x": 0,
						"y": 108.57142857142858,
						"style": {
							"lineWidth": 2,
							"lineColor": "#ffffff",
							"fillColor": "#b8b8b8",
							"textColor": "rgba(0,0,0,0)",
							"fontSize": 0,
							"fontFamily": "serif"
						},
						"value": 1,
						"xAttr": 2,
						"yAttr": 2,
						"widthAttr": 2,
						"heightAttr": 0,
						"xParam": 0,
						"yParam": 0.1507936507936508,
						"widthParam": 1,
						"heightParam": 1,
						"images": {
							"display": 2
						},
						"events": {
							"onClick": null,
							"onChanged": "console.log(\"onChanged was triggered\")",
							"onChanging": null
						},
						"children": []
					},
					{
						"type": "ui-button",
						"name": "ui-button-general",
						"uid": 11205,
						"z": 2,
						"w": 174,
						"h": 56,
						"pivotX": 0.5,
						"pivotY": 0.5,
						"rotation": 0,
						"opacity": 1,
						"hMargin": 5,
						"vMargin": 5,
						"scaleX": 1,
						"scaleY": 1,
						"runtimeVisible": true,
						"enable": true,
						"visible": true,
						"text": "button",
						"x": 153,
						"y": 270,
						"style": {
							"lineWidth": 2,
							"lineColor": "Red",
							"fillColor": "White",
							"textColor": "#b8b8b8",
							"fontSize": 18,
							"fontFamily": "serif"
						},
						"xAttr": 3,
						"yAttr": 2,
						"widthAttr": 0,
						"heightAttr": 0,
						"xParam": 1,
						"yParam": 0.375,
						"widthParam": 1,
						"heightParam": 1,
						"images": {
							"display": 2,
							"active_bg": "assets/controls/button_active.png",
							"normal_bg": "assets/controls/button_normal.png",
							"disable_bg": "assets/controls/button_active.png"
						},
						"events": {
							"onClick": null,
							"onUpdateTransform": null
						},
						"children": []
					},
					{
						"type": "ui-edit",
						"name": "ui-edit-general",
						"uid": 18605,
						"z": 3,
						"w": 199,
						"h": 46,
						"pivotX": 0.5,
						"pivotY": 0.5,
						"rotation": 0,
						"opacity": 1,
						"hMargin": 8,
						"vMargin": 5,
						"scaleX": 1,
						"scaleY": 1,
						"runtimeVisible": true,
						"enable": true,
						"visible": true,
						"text": "Editor",
						"x": 148,
						"y": 187.00000000000003,
						"style": {
							"lineWidth": 2,
							"lineColor": "rgba(0,0,0,0)",
							"fillColor": "rgba(0,0,0,0)",
							"textColor": "#666666",
							"fontSize": 8,
							"fontFamily": "serif"
						},
						"xAttr": 2,
						"yAttr": 2,
						"widthAttr": 1,
						"heightAttr": 0,
						"xParam": 0.30833333333333335,
						"yParam": 0.25972222222222224,
						"widthParam": 0.41458333333333336,
						"heightParam": 1,
						"leftMargin": 20,
						"rightMargin": 12,
						"inputType": "text",
						"images": {
							"display": 2,
							"default_bg": "assets/controls/editor_normal_bg.png",
							"focused_bg": "assets/controls/editor_focus_bg.png"
						},
						"events": {
							"onClick": null,
							"onChanged": null,
							"onChanging": null,
							"onFocusIn": null,
							"onFocusOut": null
						},
						"children": []
					}
				]
			}
		]
	},
	"deviceConfig": {
		"name": "Device-General",
		"bg": "drawapp8/images/device.png",
		"platform": "android",
		"version": "5",
		"lcdDensity": "hdpi",
		"width": 560,
		"height": 798,
		"screenX": 36,
		"screenY": 80,
		"screenW": 480,
		"screenH": 720
	},
	"docid": 1452330960778,
	"fileList": [
		{
			"weburl": "http://www.tangide.com/cantk-game/assets/images/force_landscape.png",
			"fileurl": "cantk-game/assets/images/force_landscape.png"
		},
		{
			"weburl": "http://www.tangide.com/cantk-game/assets/images/force_portrait.png",
			"fileurl": "cantk-game/assets/images/force_portrait.png"
		},
		{
			"weburl": "http://www.tangide.com/assets/controls/button_active.png",
			"fileurl": "assets/controls/button_active.png"
		},
		{
			"weburl": "http://www.tangide.com/assets/controls/button_normal.png",
			"fileurl": "assets/controls/button_normal.png"
		},
		{
			"weburl": "http://www.tangide.com/assets/controls/editor_normal_bg.png",
			"fileurl": "assets/controls/editor_normal_bg.png"
		},
		{
			"weburl": "http://www.tangide.com/assets/controls/editor_focus_bg.png",
			"fileurl": "assets/controls/editor_focus_bg.png"
		}
	]
}